package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.base.enums.IsEnableEnum;
import com.weixing.mall.provider.model.domain.Depot;
import com.weixing.mall.provider.model.dto.DepotDto;
import com.weixing.mall.provider.model.query.DepotQuery;
import com.weixing.mall.provider.model.vo.DepotVo;

import java.util.List;

/**
 * <p>
 * 仓库模块-仓库表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
public interface IDepotService extends IService<Depot> {

    List<DepotVo> selectDepotKeeperList();

    void create(DepotDto depotDto);

    void updateStatus(long id, IsEnableEnum isEnable);

    List<DepotVo>  listBySysId(Long uid,Integer flag);

    IPage<DepotVo> selectList(Page page, DepotQuery depotQuery);

    Depot getDepotByCode(String code);
}
